﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title></title>
	</head>
	<body>
	
	    <div id="WikiContent" class="WikiContent" 
            style="margin: 15px 0px 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; width: 650px; word-wrap: break-word; color: rgb(37, 51, 64); font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; ">
            <div class="wikidoc" 
                style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">
                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                    URL : <a href="http://netmfcommonext.codeplex.com/documentation">
                    http://netmfcommonext.codeplex.com/documentation</a></p>
                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                    <span style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background-color: transparent; font-weight: bold; background-position: initial initial; background-repeat: initial initial; ">
                    String Formatting</span></p>
                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                    Formatting is supported for all objects that implement the IFormattable 
                    interface. In NetMf primitive types do not implement this interface like they do 
                    in the full framework, They do however have the overloaded ToString(string 
                    format) method available on them. StringUtility.Format will explicitly use the 
                    overloaded ToString(string format) for each of the following types 
                    Int16,Int32,Int64... All other types will have the generic object.ToString() 
                    method called on them, ignoring any format string provided.</p>
                <table style="margin: 0px 0px 20px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border-collapse: collapse; border-spacing: 0px; width: 650px; border: 0.1em solid rgb(187, 187, 187) !important; background-position: initial initial; background-repeat: initial initial; ">
                    <tbody style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <th style="font-weight: normal; vertical-align: baseline; margin: 0px; padding: 5px 0px 0px 10px; outline: 0px; font-size: 1.308em; background-color: rgb(240, 241, 244); text-align: left; border-style: solid; border-width: 0.1em 0.1em 4px; border-color: rgb(187, 187, 187) rgb(187, 187, 187) rgb(216, 217, 220); font-variant: small-caps; height: 35px; color: rgb(37, 51, 64); font-style: normal; line-height: 1.923em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                                Sample Usage</th>
                            <th style="font-weight: normal; vertical-align: baseline; margin: 0px; padding: 5px 0px 0px 10px; outline: 0px; font-size: 1.308em; background-color: rgb(240, 241, 244); text-align: left; border-style: solid; border-width: 0.1em 0.1em 4px; border-color: rgb(187, 187, 187) rgb(187, 187, 187) rgb(216, 217, 220); font-variant: small-caps; height: 35px; color: rgb(37, 51, 64); font-style: normal; line-height: 1.923em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                                Sample output [variable]</th>
                        </tr>
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                string s = StringUtility.Format(&quot;{0:F}&quot;,7);</td>
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                [s] &quot;7.00&quot;</td>
                        </tr>
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                string s = StringUtility.Format(&quot;The {0} sat on the {1}&quot;, &quot;cat&quot;, &quot;mat&quot;);</td>
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                                    [s] &quot;The cat sat on the mat&quot;</p>
                            </td>
                        </tr>
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                DateTime dt = new DateTime(2010,10,01);<br />
                                string s = StringUtility.Format(&quot;Date is: {0:dd/M/yyyy}&quot;, dt);</td>
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                                    [s] &quot;01/10/2010&quot;</p>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <h3 style="font-size: 1.1em; padding: 0px !important; margin-top: 20px !important; margin-right: 0px; margin-bottom: 15px !important; margin-left: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent !important; color: rgb(37, 51, 64); font-style: normal; font-variant: normal; line-height: 1.4em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; font-weight: normal; text-transform: none !important; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                    String Replace</h3>
                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                    Replace will replace all instances of the specified search string with the 
                    replacement string provided.</p>
                <table style="margin: 0px 0px 20px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border-collapse: collapse; border-spacing: 0px; width: 650px; border: 0.1em solid rgb(187, 187, 187) !important; background-position: initial initial; background-repeat: initial initial; ">
                    <tbody style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <th style="font-weight: normal; vertical-align: baseline; margin: 0px; padding: 5px 0px 0px 10px; outline: 0px; font-size: 1.308em; background-color: rgb(240, 241, 244); text-align: left; border-style: solid; border-width: 0.1em 0.1em 4px; border-color: rgb(187, 187, 187) rgb(187, 187, 187) rgb(216, 217, 220); font-variant: small-caps; height: 35px; color: rgb(37, 51, 64); font-style: normal; line-height: 1.923em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                                Sample Usage</th>
                            <th style="font-weight: normal; vertical-align: baseline; margin: 0px; padding: 5px 0px 0px 10px; outline: 0px; font-size: 1.308em; background-color: rgb(240, 241, 244); text-align: left; border-style: solid; border-width: 0.1em 0.1em 4px; border-color: rgb(187, 187, 187) rgb(187, 187, 187) rgb(216, 217, 220); font-variant: small-caps; height: 35px; color: rgb(37, 51, 64); font-style: normal; line-height: 1.923em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                                Sample output [variable]</th>
                        </tr>
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                string original = &quot;ABC&quot;;<br />
                                string done = original.Replace(&quot;B&quot;, &quot;D&quot;);</td>
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                [done]&nbsp;&quot;ADC&quot;</td>
                        </tr>
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                string original = &quot;A B C&quot;;<br />
                                string done = original.Replace(&quot;B&quot;, &quot;BB&quot;);</td>
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                [done] &quot;A BB C&quot;<br />
                                <br />
                            </td>
                        </tr>
                    </tbody>
                </table>
                <h3 style="font-size: 1.1em; padding: 0px !important; margin-top: 20px !important; margin-right: 0px; margin-bottom: 15px !important; margin-left: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent !important; color: rgb(37, 51, 64); font-style: normal; font-variant: normal; line-height: 1.4em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; font-weight: normal; text-transform: none !important; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                    TryParseX</h3>
                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                    Implementations of the commonly used TryParse[Int/Short/Long...] methods.</p>
                <table style="margin: 0px 0px 20px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border-collapse: collapse; border-spacing: 0px; width: 650px; border: 0.1em solid rgb(187, 187, 187) !important; background-position: initial initial; background-repeat: initial initial; ">
                    <tbody style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <th style="font-weight: normal; vertical-align: baseline; margin: 0px; padding: 5px 0px 0px 10px; outline: 0px; font-size: 1.308em; background-color: rgb(240, 241, 244); text-align: left; border-style: solid; border-width: 0.1em 0.1em 4px; border-color: rgb(187, 187, 187) rgb(187, 187, 187) rgb(216, 217, 220); font-variant: small-caps; height: 35px; color: rgb(37, 51, 64); font-style: normal; line-height: 1.923em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                                Sample Usage</th>
                            <th style="font-weight: normal; vertical-align: baseline; margin: 0px; padding: 5px 0px 0px 10px; outline: 0px; font-size: 1.308em; background-color: rgb(240, 241, 244); text-align: left; border-style: solid; border-width: 0.1em 0.1em 4px; border-color: rgb(187, 187, 187) rgb(187, 187, 187) rgb(216, 217, 220); font-variant: small-caps; height: 35px; color: rgb(37, 51, 64); font-style: normal; line-height: 1.923em; font-family: 'Segoe UI Semibold', Segoe-Semibold, Tahoma, Arial, Helvetica, sans-serif; letter-spacing: 1px; background-position: initial initial; background-repeat: initial initial; ">
                                Sample output [variable]</th>
                        </tr>
                        <tr style="margin: 0px; padding: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                int i = 0;<br />
                                string s = &quot;10&quot;;<br />
                                if(Parse.TryParseInt(s, out i))<br />
                                {<br />
                                &nbsp;&nbsp;&nbsp;&nbsp; Debug.Print(&quot;Success: &quot; + i);<br />
                                }<br />
                                else<br />
                                {<br />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Pring(&quot;Failed to Parse&quot;);<br />
                                }<br />
                            </td>
                            <td style="margin: 0px; padding: 10px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; border: 0.1em solid rgb(187, 187, 187); background-position: initial initial; background-repeat: initial initial; ">
                                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                                    Debug Output:</p>
                                <p style="margin: 0px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 1em; vertical-align: baseline; background-color: transparent; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1.462em; font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif; color: rgb(37, 51, 64); background-position: initial initial; background-repeat: initial initial; ">
                                    Success: 10</p>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div id="x__mcePaste" 
                    style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px; background-position: initial initial; background-repeat: initial initial; ">
                    ﻿</div>
            </div>
            <div class="ClearBoth" 
                style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background-color: transparent; clear: both; background-position: initial initial; background-repeat: initial initial; ">
            </div>
        </div>
        <br class="Apple-interchange-newline" />
	
	</body>
</html>